#include <Precomp.h>
#include <UIRenderer.h>
#include <SoundManager.h>

using namespace AVUI;

void CustomUIRenderer::PlaySound(const WCHAR* wzSoundName)
{
    if(m_pSoundManager == NULL)
    {
        return;
    }

    if(!_wcsicmp(wzSoundName, L"Rollover.wav"))
    {
        m_pSoundManager->PlaySound(eSoundType_Rollover);
    }
    else if(!_wcsicmp(wzSoundName, L"Typing.wav"))
    {
        m_pSoundManager->PlaySound(eSoundType_Typing);
    }
    else if(!_wcsicmp(wzSoundName, L"Click.wav"))
    {
        m_pSoundManager->PlaySound(eSoundType_Click);
    }
}
             
